#app {
  width: 80%;
  margin: 1rem auto;
}
#app .cart {
  width: 3.85rem;
  position: relative;
}
#app .cart .title {
  border: 1px solid #ddd;
  width: 2rem;
  position: absolute;
  top: 0;
  right: 0;
  text-align: center;
  padding: 0.05rem;
  height: 0.35rem;
  z-index: 999;
  background-color: #F5F5F5;
  cursor: pointer;
}
#app .cart .title img {
  width: 0.2rem;
  vertical-align: middle;
  margin-right: 0.1rem;
}
#app .cart .title span {
  vertical-align: middle;
}
#app .cart .title:after {
  content: '1';
  display: block;
  background-color: #DC1742;
  height: 0.18rem;
  color: #fff;
  width: 0.18rem;
  border-radius: 50%;
  text-align: center;
  line-height: 0.18rem;
  position: absolute;
  top: 0;
  right: 0.2rem;
  transform: translateY(-50%);
  font-size: 0.12rem;
}
#app .cart .cart-list {
  position: absolute;
  top: 0.34rem;
  border: 1px solid #ddd;
  display: none;
  cursor: pointer;
}
#app .cart .cart-list .cart-title {
  font-weight: bold;
  padding: 0.1rem;
  border-bottom: 1px dashed #ddd;
}
#app .cart .cart-list .goods-info {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem;
}
#app .cart .cart-list .goods-info .goods-img {
  flex: 2;
}
#app .cart .cart-list .goods-info .goods-desc {
  flex: 5;
}
#app .cart .cart-list .goods-info .goods-price {
  flex: 2;
}
#app .cart .cart-list .cart-footer {
  padding: 0.1rem;
  background-color: #F5F5F5;
  position: relative;
}
#app .cart .cart-list .cart-footer span:nth-of-type(2) {
  padding: 0.05rem;
  border-radius: 0.05rem;
  background-color: #DC1742;
  color: white;
  position: absolute;
  right: 0.1rem;
  top: 50%;
  transform: translateY(-50%);
}
